﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VietThinks.Model
{
    public class Right:DomainEntity<int>
    {
        public Right()
        {
            this.Roles = new List<RightInRole>();
        }
        public virtual string Code { get; set; }
        public virtual string Name { get; set; }
        public virtual bool Actived { get; set; }
        public virtual DateTime CreatedDate { get; set; }
        public virtual DateTime ModifiedDate { get; set; }

        public virtual IList<RightInRole> Roles { get; protected set; }
        //protected readonly IList<RightInRole> roles;
        //public virtual IEnumerable<RightInRole> Roles { get { return this.roles.AsEnumerable(); } }

        //public virtual Role Role { get; set; }
    }
}
